<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = '订单详情';
$this->params['breadcrumbs'][] = $this->title;
?>
    <style>
        body{
            background: #f9f9f9;
        }
        .rightdiv{
            width: 680px;
        }
        .rwidt{
            width: 660px;
        }
        .Validform_checktip{margin:4px 0 12px 92px;}
        .jsformsub label{display:inline-block; width:105px;font-size: 14px;color: #666666;text-align: right;}
        .inputxt{
            width: 175px;
            border: 1px solid #e5e5e5;
            border-radius: 0;
            padding-bottom: 4px;
            padding-top: 4px;
            text-overflow: ellipsis;
            white-space: normal;
            overflow: hidden;
            padding-right: 10px;
            font-size: 14px;
            color: #666666;
        }
        .need{
            color: #ff0000;
        }
        .action{
            border-top: 1px solid #eeeeee;
            text-align: right;
            padding-top: 20px;
            padding-right: 20px;
        }
        .action input{
            border: 0 none;
            color: #666666;
            font-size: 12px;
            padding: 3px 15px;
            width: auto;
            cursor: pointer;
        }
        .jssubac{
            background-color: #cccccc;
        }
        .fpxxdiv{
            border-left: none;
            border-right: none;
            border-bottom: none;
        }
        .fpxxh3{
            border-right: 1px solid #e9eaef;
        }
    </style>

            <div class="rwidt">
                <div class="rigtable">
                    <h3 class="grh3tit">订单详情</h3>
                    <div class="jsdz">
                        <div class="ddbianhao">
                            订单编号：<?=$data['ordersn']?> <a href="<?= yii\helpers\Url::to(['finance/orderlist'])?>"><img src="/images/ddfhicon.png" alt="" class="ddfhicon"/></a>
                        </div>
                        <div class="ddzhuantai">
                            订单状态：<span class="text-3e9829"><?=$data['status']?></span>
                        </div>
                        <div class="fpxxdiv">
                            <h3 class="fpxxh3">订单概要</h3>
                            <div class="clearFloat">
                                <table class="xqtable">
                                    <tr>
                                        <td width="50%">
                                            创建时间：<?= date('Y-m-d H:i:s',$data['created_at'])?>
                                        </td>
                                        <td width="50%">
                                            订单类型：<?= $data['paycategory'] ?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="50%">
                                            支付时间：<?= date('Y-m-d H:i:s',$data['updated_at']) ?>
                                        </td>
                                        <td width="50%">
                                            支付状态：<span class="text-3e9829"><?=$data['status']?></span>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="fpxxdiv">
                            <h3 class="fpxxh3">订单详情</h3>
                            <div class="clearFloat">
                                <table class="xqtable2">
                                   <tr>
                                       <th width="25%">
                                           <span class="pl40">产品</span>
                                       </th>
                                       <th width="20%">
                                           数量
                                       </th>
                                       <th width="15%">
                                           付款方式
                                       </th>
                                       <th width="30%">
                                           起止时间
                                       </th>
                                       <th>
                                           金额
                                       </th>
                                   </tr>
                                    <tr>
                                        <td>
                                            <span class="pl40"><?=$data['name']?></span>
                                        </td>
                                        <td>
                                            <?=$data['num']?>
                                        </td>
                                        <td>
                                            <?=$data['payway']?>
                                        </td>
                                        <td>
										<?=date('Y-m-d H:i:s',$data['starttime'])?>-<?=date('Y-m-d H:i:s',$data['endtime'])?>
                                        </td>
                                        <td>
                                            ￥<?=$data['paymoney']?>
                                        </td>
                                    </tr>

                                </table>
                            </div>
                        </div>
                    </div>
                </div>
        </div>